<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>title</title>
  <script src="../vue.js"></script>
</head>
<body>
<div id="app">

  <h1>{{msg}}</h1>

  请输入考试成绩:<input type="text" v-model.number.lazy="score">
  <br>
  <h3 v-if="score>90">您的考试成绩等级为:A</h3>
  <h3 v-else-if="score>80">您的考试成绩等级为:B</h3>
  <h3 v-else-if="score>70">您的考试成绩等级为:C</h3>
  <h3 v-else-if="score>=60">您的考试成绩等级为:D</h3>
  <h3 v-else>你本次的考试不及格，请去教务处申请补考</h3>

</div>

<script>
  Vue.config.productionTip = false;
  const vm = new Vue({
    el:'#app',
    data(){
      return{
        msg:'hello Vue~~~',
        score:null
      }
    }
  })
</script>

</body>
</html>
